package com.sphd.emanu.fragment.aterials;

import android.content.Context;
import android.support.v7.app.AlertDialog;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.goods.Category;

import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;
import retrofit2.http.Query;

/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class AterialsContract {
    interface View extends BaseView {

        void setList(List<Category> categories);

        void setAddRes(int res, AlertDialog viewDialog);

        void setDelRes(int res, int pos, SweetAlertDialog sweetAlertDialog);
    }

    interface  Presenter extends BasePresenter<View> {
        void selectFristCategory(int org);
        void deleteMaterialCategory(Integer categoryId, int pos, SweetAlertDialog sweetAlertDialog);
        void updateMaterialCategory(int id,Integer level, String name, Integer org, AlertDialog viewDialog);
    }
}
